package git.determinal.template.view;




import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.annotations.ApiModel;

@ApiModel("返回结果集，只有一条记录")
@JsonInclude(Include.ALWAYS)
public class OneCountData<T> {
    long count;
    T data;

    public OneCountData() {
    }

    public long getCount() {
        return this.count;
    }

    public T getData() {
        return this.data;
    }

    public void setCount(final long count) {
        this.count = count;
    }

    public void setData(final T data) {
        this.data = data;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof OneCountData)) {
            return false;
        } else {
            OneCountData<?> other = (OneCountData)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (this.getCount() != other.getCount()) {
                return false;
            } else {
                Object this$data = this.getData();
                Object other$data = other.getData();
                if (this$data == null) {
                    if (other$data != null) {
                        return false;
                    }
                } else if (!this$data.equals(other$data)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof OneCountData;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        long $count = this.getCount();
        result = result * 59 + (int)($count >>> 32 ^ $count);
        Object $data = this.getData();
        result = result * 59 + ($data == null ? 43 : $data.hashCode());
        return result;
    }

    public String toString() {
        return "OneCountData(count=" + this.getCount() + ", data=" + this.getData() + ")";
    }
}




